import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/api/queryPassenger',
    method: 'post',
    data
  })
}

export function queryAllPassenger() {
  return request({
    url: '/api/queryPassenger',
    method: 'get',
  })
}

export function deletePassenger(data) {
  return request({
    url: '/api/deletePassenger',
    method: 'post',
    data
  })
}

export function editPassenger(data) {
  return request({
    url: '/api/editPassenger',
    method: 'post',
    data
  })
}

export function addPassenger(data) {
  return request({
    url: '/api/addPassenger',
    method: 'post',
    data
  })
}

export function getKind(data) {
  return request({
    url: '/api/queryTypeByCard',
    method: 'post',
    data
  })
}